#!/bin/bash

sudo apt update
sudo apt install expect -y
sudo npm install -g forever
sudo npm install forever-service -g
sudo npm install -g moment
sudo apt-get install python3-pip -y
sudo pip3 install requests
sudo rm /etc/systemd/system/node*.service
sudo rm /etc/systemd/system/port*.service
sudo rm /etc/systemd/system/erc20*.service
sudo rm /etc/systemd/system/explorer.service
sudo systemctl stop node1.service
sudo systemctl stop node2.service
sudo systemctl stop node3s.service
sudo systemctl stop erc20.service
sudo systemctl stop explorer.service
sudo rm -r devroot
mkdir devroot
sudo chmod -R 0755 devroot
mkdir /root/devroot/node1 /root/devroot/node2 /root/devroot/node3s /root/devroot/$node4$
python3 passfile.py passfile1.txt node1happy
python3 passfile.py passfile2.txt node2happy
python3 passfile.py passfile3.txt node3happy
